﻿package com.daowen.uibuilder;

import java.text.MessageFormat;

import com.daowen.dal.DALBase;
import com.daowen.entity.Xltype;

public class XianluUibuilder extends UibuilderBase {
	public XianluUibuilder(String lanmuclassname){
		super("xianlu", lanmuclassname, "title", "tupian");
	}
	
	public String  buildXianlu(int  typeid) {
		
		if(typeid==-1){
		    return 	buildImageLanmu("", -1, "旅游线路");
		}
		String filter=MessageFormat.format(" where typeid={0} ",typeid);
		Xltype xltype=(Xltype)DALBase.load("xltype", "where id="+typeid);
		return buildImageLanmu(filter,-1,xltype==null?"":xltype.getName());
		
	}
	
	
}
